package com.xiaodimall.beforesys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaodimall.beforesys.pojo.User;
import org.apache.ibatis.annotations.Select;

/**
 * @author wyc
 * @description
 * @ClassName UserMapper
 * @date 2022/11/24 15:52
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select tb_user.login_name from tb_user where login_name = #{loginName} and is_deleted = 0")
    User selectByLoginName(String loginName);

}
